package com.jk.srb.core.controller;


import com.jk.srb.core.pojo.entity.Dict;
import com.jk.srb.core.service.DictService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 数据字典 前端控制器
 * </p>
 *
 * @author jk
 * @since 2021-05-25
 */
@Slf4j
@RestController
@RequestMapping("/dict")
public class DictController {
    @Resource
    private DictService dictService;

    @GetMapping("/list")
    public List<Dict> getList() {

        log.info("test.....");

        return dictService.list();
    }
}

